package com.dongdong.bookstore.module.pms.dto;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotEmpty;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * <p>
 * 书籍分类表
 * </p>
 *
 * @author chiangkai
 * @since 2021-10-31
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class BookCategoryDto implements Serializable {

    @NotEmpty(message = "分类名称不能为空")
    @ApiModelProperty(value = "分类名称")
    private String name;

    @ApiModelProperty(value = "分类等级")
    private Integer level;

    @NotEmpty(message = "父菜单不能为空")
    @ApiModelProperty(value = "父ID")
    private Long parentId;

    @ApiModelProperty(value = "显示优先级")
    private Integer sort;

    @ApiModelProperty(value = "隐藏")
    private Integer hidden;

    @ApiModelProperty(value = "分类描述")
    private String description;

    @ApiModelProperty(value = "科目分类IDS")
    private List<Long> subjectIds;

}
